package com.zznode.redsun.smartcrm.business.service;

import org.springframework.transaction.annotation.Transactional;

import com.zznode.csp.domain.commons.query.Page;
import com.zznode.redsun.commons.dto.ConsultDto;
import com.zznode.redsun.commons.dto.RecordQuery;
import com.zznode.redsun.commons.sercurity.shiro.LoginUser;

public interface ConsultService {
	@Transactional
	void save(ConsultDto dto, LoginUser<Long> loginUser);

	@Transactional(readOnly = true)
	ConsultDto get(Long id);

	@Transactional(readOnly = true)
	Page<ConsultDto> query(RecordQuery params, int pageNumber, int pageSize);
}
